import request from "../utils/request";

const BASE_URL = "maimao_goods/goods/cate";
export default {

    /**
     * 全量分类数
     */
    categoryTree() {
        return request({
            url: `${BASE_URL}/treeData?no=`+new Date(),
            method: 'get',
        })
    },

    /**
     * 根据关键字搜索id
     */
    selectIdByKeyLike(key){
        return request({
            url :`${BASE_URL}/search-key?key=${key}`,
            method: 'get'
        })
    }

}

